//
//  NetworkTools.h
//  weibo-OC
//
//  Created by diyuyma on 16/3/3.
//  Copyright © 2016年 zhangkaiyun. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AFNetworking.h"



@interface NetworkTools : AFHTTPSessionManager

+ (instancetype)sharedTools;

- (void)requestJsonDict: (HTTPMethod)method WithUrlString: (NSString *)urlString WithParameters: (NSMutableDictionary *)parameters WithFinished:(void(^)(NSDictionary *result, NSError *error))finished;
- (void)uploadImage: (NSString *)urlString WithParmaters: (NSMutableDictionary *)parmaters WithData: (NSData *)imageData WithFinished: (void(^)(NSDictionary *result, NSError *error))finished;
@end
